accel group: Make gtk_accelerator_get_default_mod_mask more lenient
authorMatthias Clasen <mclasen@redhat.com>
Sat, 29 Aug 2015 16:23:18 +0000 (12:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 29 Aug 2015 22:09:58 +0000 (18:09 -0400)
commitb371fb09fb3034d3ca25c4eaba10e0b861478773
treecf74e7df0518c33bef7d6321dfe822c55e9d15e6
parente6b3805c27358065ced83b3c93f67ac66dd3203a
accel group: Make gtk_accelerator_get_default_mod_mask more lenient

Make this function harmless to call without an open display connection.
This happens during gobject introspection, which instantiates GTK+
types without calling gtk_init.
gtk/gtkaccelgroup.c